package com.rkc.feign;

import com.rkc.request.LockProductRequest;
import com.rkc.utils.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author `RKC`
 * @date 2022/3/3 15:22
 */
@FeignClient(name = "shopping-product-service", contextId = "shopping-product-service", path = "/api/product/v1")
public interface ProductFeignService {

    /**
     * 锁定商品库存
     * @param lockProductRequest
     * @return
     */
    @PostMapping("lock_products")
    JsonData lockProductStock(@RequestBody LockProductRequest lockProductRequest);
}
